import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {OrderComponent} from './order/order.component';
import {CommodityComponent} from './commodity/commodity.component';
import {CommodityEditComponent} from './commodity/commodity-edit/commodity-edit.component';
import {OrderDetailComponent} from './order/order-detail/order-detail.component';
import {HotSearchComponent} from './commodity/hot-search/hot-search.component';
import { RentPlanClassComponent } from './rent-class-manage/rent-plan-class/rent-plan-class.component';


const routes: Routes = [
  {path: '', redirectTo: 'hireDeviceOrderList', pathMatch: 'full'},
  {path: 'hireDeviceOrderList', component: OrderComponent, data: {breadcrumb: '订单列表', keep: true}},
  {path: 'hireDeviceOrderDetail', component: OrderDetailComponent, data: {breadcrumb: '订单详情'}},
  {path: 'hireDeviceCommodityList', component: CommodityComponent, data: {breadcrumb: '商品列表', keep: true}},
  {path: 'hireDeviceCommodityEdit', component: CommodityEditComponent, data: {breadcrumb: '编辑商品'}},
  {path: 'hireDeviceHotSearch', component: HotSearchComponent, data: {breadcrumb: '热门搜素'}},
  {path: 'rent-plan-class', component: RentPlanClassComponent, data: {breadcrumb: '分类管理'}}
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class HireDeviceRoutingModule {
}
